// JavaScript Document
function download(id){
	 $.getJSON('public.php?s=doc/getDocPathAjax/id/'+id,
		   function(data){
			   if(data.path=='' || data.paht=='undefined'){
				   alert(该文档不存在);
			   }else{
				   window.open(data.path,'_self');
			   }
			  // document.write('public.php?s=doc/getDocPathAjax/id/'+id);
		   });
	 
}
$(document).ready(function(){
$('#grade').raty({
half:false,
path:'Public/Images',
start:2,
click: function(score, evt) {
 var id=$('#vote_id').val();
 $.getJSON('public.php?s=doc/setGradeAjax/id/'+id+'/grade/'+score,
	function(data){
		if(data.result=='ok'){
		  $.fn.raty.readOnly(true, '#grade');
		  alert('--成功评分：'+score+'--\r\n--感谢您的支持--');
		}
	 });
}
});
setStart();
});